<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>文章管理</title>
    <hdjs/>
    <bootstrap/>
    <link rel="stylesheet" type="text/css" href="http://localhost/juanpi/Static/Admin/hdjs/hdjs.css"/>
    <link type="text/css" rel="stylesheet" href="http://localhost/juanpi/Static/Admin/css/common.css"/>
</head>
<body>
<div class="wrap">
    <table class="hd-table hd-table-list">
        <thead>
        <tr>
            <td width="50">属性id</td>
            <td width="180">属性名称</td>
            <td width="100">属性值</td>
            <td width="180">属性类别</td>
            <td width="150">操作</td>
        </tr>
        </thead>
        <tbody>
            <?php foreach ($data as $k=>$v){?>
            <tr>
            <td width="50"><?php echo $v['atid'];?></td>
            <td width="180"><?php echo $v['atname'];?></td>
            <td width="100"><?php echo $v['at_value'];?></td>
            <td width="180"><?php echo $v['at_type'];?></td>
            <td width="150">
            	<a href="<?php echo U('edit',array('aid'=>$v['aid']));?>" class="hd-btn hd-btn-primary hd-btn-sm">编辑</a>
				<a href="<?php echo U('putRecyle',array('aid'=>$v['aid']));?>" class="hd-btn hd-btn-danger hd-btn-sm">删除</a>
            </td>
        	</tr>
        	<?php }?>
        	<tr>
    			<td colspan="20">
    				<input type="submit" value="添加" class="hd-btn hd-btn-danger hd-btn-sm"/>
    			</td>
        </tbody>
    </table>
    <style type="text/css">
    		.page_hdjob{
    			margin-top: 20px;
    			text-align: center;
    			font-size: 14px;
    			color: #333;
    		}
    		.page_hdjob a{
    			font-size: 14px;
    			color: #333;
    			padding: 3px 5px;
    			margin-left: 3px;
    			border: 1px solid #CCCCCC;
    			
    		}
    		.page_hdjob strong{
    			padding: 3px 5px;
    			margin-left: 3px;
    			background: red;
    			color: white;
    		}
    </style>
    <div class="page_hdjob">
      <?php echo $page;?>
    </div>
</div>

</body>
</html>


